/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.
 */

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
  git: [
    {
      type: 'category',
      label: 'Git使用总结',
      collapsible: false,
      items: [
        'git/overview',
        'git/specify-one-commit',
        'git/git-rebase',
        'git/git-cherry-pick',
      ],
    },
  ],
  js: [
    {
      type: 'category',
      label: 'JavaScript总结',
      collapsible: false,
      items: [
        'javascript/overview',
        {
          type: 'category',
          label: 'Chrome使用技巧',
          items: [
            'javascript/chrome/copy-curl',
          ],
        },
        {
          type: 'category',
          label: '代码整洁之道',
          items: [
            'javascript/clean-code/overview',
            'javascript/clean-code/variable',
            'javascript/clean-code/function',
            'javascript/clean-code/class',
            'javascript/clean-code/promise',
            'javascript/clean-code/error',
            'javascript/clean-code/format',
            'javascript/clean-code/test',
          ],
        },
        {
          type: 'category',
          label: '原生JavaScript',
          items: [
            'javascript/vanilla-js/overview',
            'javascript/vanilla-js/Object',
          ],
        },
      ],
    },
  ],
};

module.exports = sidebars;
